﻿using RBAC.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceab.DTO;
using Traceability.Domain;


namespace Traceability.Service.Interfae
{
    /// <summary>
    /// 溯源信息
    /// </summary>
    public interface ITraceabilitysService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="traceabilitys"></param>
        /// <returns></returns>
        Task<int> AddTraceabilitys(Traceabilitys traceabilitys);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="traceabilitys"></param>
        /// <returns></returns>
        Task<int> UpdateTraceabilitys(Traceabilitys traceabilitys);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<PageDto<TraceDto>> GetTraceabilitys(int pageSize, int pageIndex);
        /// <summary>
        /// 单删
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DelTra(int id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Traceabilitys> GetTraceabilitysByid(int id);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DelTraceabilitys(List<int> ids);
        /// <summary>
        /// 详情反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<TraceDto>> GetTraceabilitysBy(string batchs);

    }
}
